import KoaRouter from '@koa/router';
import { KoaContext } from '@/types/koa';

const router = new KoaRouter({
  prefix: '/user',
});

router.get('/test1', async (ctx: KoaContext) => {
  ctx.body = {
    code: 200,
    message: 'v2/user/test1',
    time: ctx.utils.dayjs(Date.now()).format('YYYY-MM-DD HH:mm:ss'),
  };
});

export default router;
